package com.ioc.initialmethod;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

/**
 * @author cyt
 * @create 2020-08-03 15:56
 */
@Component
public class Cat implements InitializingBean, DisposableBean {
    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("赋值之后调用  ->>>>");
    }

    @Override
    public void destroy() throws Exception {
        System.out.println("销毁之后调用  ->>>>");
    }
}
